


class Property {
    width: number
    height: number
    x: number
    y: number

    constructor(width: number, height: number, x:number, y: number){
        this.width = width
        this.height = height
        this.x= x
        this.y = y
    }
}

export class SceneImage extends Property{
    src: string
    seconds: number

    constructor(src: string, seconds: number,width: number, height: number, x:number, y: number){
        super(width,height,x,y)
        this.src = src
        this.seconds = seconds
    }
}


export class SceneVideo extends Property{

    src: string
    seconds: number

    constructor(src: string, seconds: number,width: number, height: number, x:number, y: number){
        super(width,height,x,y)
        this.src = src
        this.seconds = seconds
    }
}

export class SceneText extends Property{
    src: string
    constructor(src: string, width: number, height: number, x:number, y: number){
        super(width,height,x,y)
        this.src = src
    }
}

export class PlayScene {
    images: Array<SceneImage>
    videos: Array<SceneVideo>
    texts: Array<SceneText>



    constructor(images: Array<SceneImage> ,  videos: Array<SceneVideo> ,  texts: Array<SceneText> ){
        this.images = images
        this.videos = videos
        this.texts = texts
    }

    setImages(images: Array<SceneImage> ){
        this.images = images
    }

    setVideos( videos: Array<SceneVideo>){
        this.videos = videos
    }

    setTexts( texts: Array<SceneText>){
        this.texts = texts
    }

    getImages(){
        return this.images
    }

    getVideos() {
        return this.videos
    }

    getTexts() {
        return this.texts
    }
}